<!DOCTYPE html>
<html>
<#macro header>
	<head>
	    <meta charset="utf-8">
	    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	    <meta http-equiv="X-UA-Compatible" content="IE=edge">
	    <meta name="viewport" content="width=device-width, initial-scale=1">
		<title>Hello-admin</title>
		<link rel="shortcut icon" href="${ctx}/image/favicon.ico">
		<link rel="stylesheet" href="${ctx}/plugins/bootstrap/css/bootstrap.min.css">
		<link rel="stylesheet" href="${ctx}/plugins/font-awesome/css/font-awesome.min.css">
		<link rel="stylesheet" href="${ctx}/gentelella/css/custom.min.css">
		<link rel="stylesheet" href="${ctx}/plugins/custom-scrollbar/jquery.mCustomScrollbar.min.css">
		<link rel="stylesheet" href="${ctx}/plugins/select2/select2.min.css">
		<link rel="stylesheet" href="${ctx}/plugins/iCheck/skins/all.css">
		<link rel="stylesheet" href="${ctx}/plugins/jquery-confirm/jquery-confirm.min.css">
		<link rel="stylesheet" href="${ctx}/custom/css/common.css">
		<#nested>  <!-- css引入  -->
	</head>
</#macro>
<#macro body>
<body class="nav-md footer_fixed">
	<div class="container body">
		<div class="main_container">
			<!-- 左侧菜单 -->
			<div class="col-md-3 left_col menu_fixed">
				<div class="left_col scroll-view">
					<div class="navbar nav_title" style="border: 0;">
						<a href="${ctx}/index.html" class="site_title">
							<i class="fa fa-car"></i>
							<span>Hello Admin</span>
						</a>
					</div>
					<div class="clearfix"></div>
					<div class="profile clearfix">
						<div class="profile_pic">
							<img src="${ctx}/image/nora.jpg" alt="..." class="img-circle profile_img">
						</div>
						<div class="profile_info">
							<span>欢迎</span>
							<h2>${(currentUser.userName)!'游客'}</h2>
						</div>
					</div>
					<br />
					<div id="sidebar-menu" class="main_menu_side hidden-print main_menu">
						<div class="menu_section">
							<ul class="nav side-menu">
								<li><a href="${ctx}/index.html"><i class="fa fa-laptop"></i>系统首页</a></li>
								<#if treeMenus??>
									<#list treeMenus as vo>
										<li>
											<a>
												<i class="${(vo.sysMenu.icon)!}"></i>${(vo.sysMenu.menuName)!}
												<span class="fa fa-chevron-down"></span>
											</a>
											<ul class="nav child_menu">
												<#list vo.children as ch>
														<li><a href="${ctx}/${(ch.sysMenu.url)!}">${(ch.sysMenu.menuName)!}</a></li>
												</#list>
											</ul>
										</li>
									</#list>
								</#if>
							</ul>
						</div>
					</div>
				</div>
			</div>
			<!-- /左侧菜单 -->
			<!-- 顶部内容 -->
			<div class="top_nav">
				<div class="nav_menu">
					<nav>
						<div class="nav toggle">
							<a id="menu_toggle"><i class="fa fa-bars"></i></a>
						</div>
						<!-- 右侧控件 -->
						<ul class="nav navbar-nav navbar-right">
							<li>
								<a href="javascript:;" onclick="logout()" class="dropdown-toggle" title="退出系统">
									<i class="fa fa-sign-out"></i>
								</a>
							</li>
							<li>
								<a href="${ctx}/system/myinfo/pwd" class="dropdown-toggle" title="修改密码">
									<i class="fa fa-cog"></i>
								</a>
							</li>
						</ul>
					</nav>
				</div>
			</div>
			<!-- /顶部内容 -->
			<#nested> <!-- 页面内容引入  -->
			<!-- 底部内容 -->
			<footer>
				<div class="pull-right">
					Hello - Admin <a href="https://gitee.com/liyucc">Copyright © 2021. All rights reserved.</a>
				</div>
				<div class="clearfix"></div>
			</footer>
			<!-- /底部内容 -->
		</div>
	</div>
</#macro>
<#macro footer>
	<script src="${ctx}/plugins/jQuery/jQuery-2.1.4.min.js"></script>
	<script src="${ctx}/plugins/bootstrap/js/bootstrap.min.js"></script>
	<script src="${ctx}/gentelella/js/custom.js"></script>
	<script src="${ctx}/plugins/fastclick/fastclick.js"></script>
	<script src="${ctx}/plugins/custom-scrollbar/jquery.mCustomScrollbar.concat.min.js"></script>
	<script src="${ctx}/plugins/jquery-confirm/jquery-confirm.min.js"></script>
	<script src="${ctx}/plugins/select2/select2.full.min.js"></script>
	<script src="${ctx}/plugins/select2/zh-CN.js"></script>
	<script src="${ctx}/plugins/layer/layer.js"></script>
	<script src="${ctx}/plugins/laydate/laydate.js"></script>
	<script src="${ctx}/plugins/iCheck/icheck.min.js"></script>
	<script src="${ctx}/plugins/laydate/laydate.js"></script>
	<script src="${ctx}/plugins/validate/jquery.validate.min.js"></script>
	<script src="${ctx}/plugins/validate/messages_zh.min.js"></script>
	<script src="${ctx}/plugins/validate/jquery.validate.extend.js"></script>
	<script src="${ctx}/custom/js/common.js"></script>
	<#nested>  <!-- js引入  -->
	<script>
		// 退出登录
		function logout() {
			window.location.href = "${ctx}/login/logout?r=" + new Date().getTime();
		}
	</script>
</#macro>
</body>
</html>
